package com.learn;

import com.learn.context.GetBeanUtil;
import com.learn.service.UserServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @program: rmi
 * @description
 * @author: luffy
 * @create: 2020-08-17 14:03
 */
@SpringBootApplication
public class ServerBoot {
    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(ServerBoot.class, args);
        UserServiceImpl userService = (UserServiceImpl)GetBeanUtil.getBean("IUserService");
        userService.startServer("127.0.0.1", 8999);
    }
}
